﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Doan.Website.Models
{
    public class QuestionMeta
    {
        [Required]
        public int GroupNewsId { get; set; }

        [Required]
        public string Title { get; set; }

        [Required]
        [UIHint("markdowneditor"), AllowHtml]
        public string Content { get; set; }

        [Required]
        [DataType(DataType.DateTime)]
        public DateTime CreateDate { get; set; }

        [Required]
        [StringLength(255, ErrorMessage = "Tên phải có tối thiểu 6 ký tự", MinimumLength = 6)]
        public string AuthorName { get; set; }

        [Required]
        [DataType(DataType.EmailAddress, ErrorMessage = "Địa chỉ mail không hợp lệ")]
        public string Email { get; set; }

    }
}
